package com.hyts.updatefsm;

import com.test.updater.fsm.Parameter;

/**
 * Created by lmy on 2015/8/24.
 */
public class UpdateParameter implements Parameter{
    public static class CheckParameter extends UpdateParameter {
        private String mSoftId;
        private String mServiceId;
        private int mType;
        private String mEx0;
        public CheckParameter(String softId, String serviceId, int type, String ex0) {
            mSoftId = softId;
            mServiceId = serviceId;
            mType = type;
            mEx0 = ex0;
        }

        public String softId() {
            return mSoftId;
        }

        public String serviceId() {
            return mServiceId;
        }

        public int type() {
            return mType;
        }

        public String ex0() {
            return mEx0;
        }

    }
    public static class DownloadParameter extends UpdateParameter {
        private String mUrl;
        private String mDownloadFilePath;
        private int mNetType;
        public DownloadParameter(String url, String filepath, int netType) {
            mUrl = url;
            mDownloadFilePath = filepath;
            mNetType = netType;
        }

        public String url() {
            return mUrl;
        }

        public String filepath() {
            return mDownloadFilePath;
        }

        public int netType() {
            return mNetType;
        }
    }
}
